<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>单分支条件</title>
</head>
<%--
<c:if></c:if>
<c:choose>
    <c:when><c:when/>
    <c:otherwise><c:otherwise/>
<c:choose/>
<c:forEache><c:forEache/>
--%>
<body>
<%--users=${requestScope}--%>
<c:if test='${requestScope.users.userName eq "admin" and requestScope.users.userPwd eq "123"}'>
   <div>欢迎你，${users.userName}，登录成功!</div>
</c:if>
<c:if test='${not (requestScope.users.userName eq "admin" and requestScope.users.userPwd eq "123")}'>
   <div>用户名或密码错误!!!</div>
</c:if>

</body>
</html>
